<template>
  <ych-modal
    :fullscreen="false"
    :title="title"
    :visible="visible"
    :destroyOnClose="true"
    @cancel="handleCancel">

    <dict-list categoryType="2" :groupId="groupId"></dict-list>

    <template slot="footer">
      <a-button key="back" @click="handleCancel">{{ $t('m.common.button.close') }}</a-button>
    </template>
  </ych-modal>
</template>

<script>


import DictList from "../../../system/DictList";

export default {
  name: 'EditDictDialog',
  components: {
    DictList
  },
  props: {
    groupId: {
      type: String,
      required: true
    },
  },
  data() {
    return {
      title: this.$t('m.common.label.Maintain_data'),
      visible: false,
    }
  },
  methods: {
    handleCancel() {
      this.visible = false
    },
  }
}
</script>
